<style>
    .edui-editor {
        z-index: 1 !important;
    }

    .edit_table {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .tr_one {
        height: 80px;
        text-align: center;
        line-height: 80px;
    }

    .one_name {
        font-size: 16px;
        color: #888;
    }

    .tr_title {
        height: 50px;
        line-height: 50px;
        text-align: center;
    }

    .tr_body {
        text-align: center;
        height: 40px;
        line-height: 40px;
        border-bottom: 1px solid #ccc;
    }

    .tr_body td {

    }

    .tr_body input {
        height: 40px;
        border: unset;
        text-align: center;
    }
</style>
<div class="layuimini-container">
    <input type="text" placeholder="输入名称后 回车添加" id="add_seasoning" class="layui-input">
    <input type="hidden" id="machine_id" value="{$row.row.machine_id}">
    <form id="app-form" class="layui-form layuimini-form" autocomplete="off">

        <table class="edit_table">
            <tbody>
            <tr class="tr_one">
                <td class="one_name">机器编码</td>
                <td class="one_value">{$row.row.machine_id}</td>
                <td class="one_name">机器名称</td>
                <td class="one_value">{$row.row.machine_name}</td>
            </tr>



            </tbody>
        </table>

        <link rel="stylesheet" href="__STATIC__/plugs/lay-module/treetable-lay/treetable.css?v={:time()}" media="all">
        <style>
            .layui-btn:not(.layui-btn-lg ):not(.layui-btn-sm):not(.layui-btn-xs) {
                height: 34px;
                line-height: 34px;
                padding: 0 8px;
            }
        </style>
        <table id="currentTable" class="layui-table layui-hide"
               data-auth-add="{:auth('machine.machine/add')}"
               data-auth-edit="{:auth('machine.machine/edit')}"
               data-auth-delete="{:auth('machine.machine/delete')}"
               lay-filter="currentTable">
        </table>
        <script type="text/html" id="toolbar">
            <button class="layui-btn layui-btn-sm layuimini-btn-primary" data-treetable-refresh><i class="fa fa-refresh"></i> </button>
            <button class="layui-btn layui-btn-normal layui-btn-sm {if !auth('system.menu/add')}layui-hide{/if}" data-open="system.menu/add" data-title="添加" data-full="true"><i class="fa fa-plus"></i> 添加</button>
            <button class="layui-btn layui-btn-sm layui-btn-danger {if !auth('system.menu/del')}layui-hide{/if}" data-url="system.menu/del" data-treetable-delete="currentTableRenderId"><i class="fa fa-trash-o"></i> 删除</button>
        </script>


        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>

<script>
    let machine_id = "{$row.row.id}";
</script>